Learn how to integrate Web SDK with your Telegram Mini-app or Game for seamless web3 functionality.
Create a Telegram Bot with BotFather
/start
/newbot
Obtain Required Tokens
Install and Configure Your Project
.env
file with the VITE_PROJECT_ACCESS_KEY
and VITE_WAAS_CONFIG_KEY
with your keys from Sequence Builder after configuration.VARS
in the wrangler.toml
file with a user provided secret for BOT_SECRET
and the bot token from BotFather for BOT_TOKEN
.Authenticate with Cloudflare Account
pnpm wrangler pages deploy
Register Webhook with Telegram
registerWebhook
endpoint on our app to register the webhook function with the URL of your deployed application to enable access for the Telegram API.Update Allowed Origins
Test out the Bot!
BOT_TOKEN
, you can encrypt and store it in Cloudflare via the following command to prevent data leaks: